<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>重复性渐变</title>
    <style>
        *{margin: 0;padding: 0;list-style-type: none;}
        .box{
            width: 300px;
            height: 300px;
            box-shadow: 0 0 0 1px orange;
            margin: 50px;

            /* css提供了两个重复性渐变
                1.重复线性渐变
                2.重复径向渐变
            */
            /* background: linear-gradient(
                to right,
                aqua 0,aqua 10px,
                blue 10px,blue 20px,
                transparent 20px
            ) 0 0/20px 300px; */
            /* background: repeating-linear-gradient(
                to right,
                aqua 0,aqua 10px,
                green 10px,green 20px
            ); */
            background: repeating-radial-gradient(
                aqua 0,aqua 10px,
                green 10px,green 20px
            );
        }
    </style>
</head>
<body>
    <div class="box">

    </div>
</body>
</html>